package zmodule

import (
	"znet/leaf/consts"
	"znet/leaf/module"
	"znet/leaf/chanrpc"
)
func NewSkeleton() *module.Skeleton {
	skeleton := &module.Skeleton{
		GoLen:              consts.GoLen,
		TimerDispatcherLen: consts.TimerDispatcherLen,
		AsynCallLen:        consts.AsynCallLen,
		ChanRPCServer:      chanrpc.NewServer(consts.ChanRPCLen),
	}
	skeleton.Init()
	return skeleton
}
